package com.atguigu.eduorder.client;


import com.atguigu.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


//标识为Bean，交给spring管理
@Component
@FeignClient(name = "service-ucenter")
public interface UcenterClient {

    //根据用户id获取用户信息
    @GetMapping("/educenter/member/getUserInfoOrder/{id}")
    //可以用R对象返回取值，但是不方便,且UcenterMember对象和Order对象内容一致但对象不一致，所以将UcenterMember对象复制到common_utils模块里取名为UcenterMemberOrder
    public UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);
}
